package com.qyhl.webtv.module_news.news.jlnews;


import com.qyhl.webtv.commonlib.entity.news.JLNewDetailBean;

public class JLNewsPresenter implements JLNewsContract.JLNewsPresenter {
    private JLNewsDetailActivity mView;
    private JLNewsModel mModel;

    JLNewsPresenter(JLNewsDetailActivity mView) {
        this.mView = mView;
        this.mModel = new JLNewsModel(this);
    }

    @Override
    public void getDetail(String newsId) {
        mModel.getDetail(newsId);
    }

    @Override
    public void setDetail(JLNewDetailBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError() {
        mView.setError();
    }
}
